package ltd.newbee.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "admin_login")
public class AdminLogin implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(value = "user_id", jdbcType = JdbcType.BIGINT)
    private Long userId;

    @TableField(value = "nick_name", jdbcType = JdbcType.VARCHAR)
    private String nickName;

    @TableField(value = "ip", jdbcType = JdbcType.VARCHAR)
    private String ip;

    @TableField(value = "address", jdbcType = JdbcType.VARCHAR)
    private String address;

    @TableField(value = "os", jdbcType = JdbcType.VARCHAR)
    private String os;

    @TableField(value = "browser", jdbcType = JdbcType.VARCHAR)
    private String browser;

    @TableField(value = "ua", jdbcType = JdbcType.VARCHAR)
    private String ua;

    @TableField(value = "login_time")
    private Date loginTime;

}
